import { createPinia } from 'pinia';

const pinia = createPinia();

export default pinia;

// stores/types.ts
export interface User {
  id: number
  name: string
  email: string
  avatar?: string
  role: 'user' | 'author' | 'admin'
  profile?: UserProfile
  stats?: UserStats
}

export interface UserProfile {
  bio?: string
  website?: string
  location?: string
  company?: string
}

export interface UserStats {
  article_count: number
  follower_count: number
  following_count: number
  total_views: number
}